package com.mapapp.flutter_mapapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

public class StepFloorBean implements Parcelable {
    private String taskId;
    private String regionId;
    private String regionName;
    private String parentRegionName;
    private String bh;
    private int levelNumber;
    private String longitude;
    private String latitude;
    private String address;
    private String processId;
    private String processName;
    private double processPercent;
    private int fixNoAuditNum;
    private ArrayList<StepFloorProcessBean> processes;
    private ArrayList<StepFloorBean> regions;
    private int dbFlag = -1;

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProcessId() {
        return processId;
    }

    public void setProcessId(String processId) {
        this.processId = processId;
    }

    public String getProcessName() {
        return processName;
    }

    public void setProcessName(String processName) {
        this.processName = processName;
    }

    public double getProcessPercent() {
        return processPercent;
    }

    public void setProcessPercent(double processPercent) {
        this.processPercent = processPercent;
    }

    public ArrayList<StepFloorProcessBean> getProcesses() {
        return processes;
    }

    public void setProcesses(ArrayList<StepFloorProcessBean> processes) {
        this.processes = processes;
    }
    public String getBh() {
        return bh;
    }

    public void setBh(String bh) {
        this.bh = bh;
    }

    public int getLevelNumber() {
        return levelNumber;
    }

    public void setLevelNumber(int levelNumber) {
        this.levelNumber = levelNumber;
    }

    public ArrayList<StepFloorBean> getRegions() {
        return regions;
    }

    public void setRegions(ArrayList<StepFloorBean> regions) {
        this.regions = regions;
    }

    public int getFixNoAuditNum() {
        return fixNoAuditNum;
    }

    public void setFixNoAuditNum(int fixNoAuditNum) {
        this.fixNoAuditNum = fixNoAuditNum;
    }

    protected StepFloorBean(Parcel in) {
        taskId = in.readString();
        regionId = in.readString();
        regionName = in.readString();
        parentRegionName = in.readString();
        bh = in.readString();
        levelNumber = in.readInt();
        longitude = in.readString();
        latitude = in.readString();
        address = in.readString();
        processId = in.readString();
        processName = in.readString();
        processPercent = in.readDouble();
        processes = in.createTypedArrayList(StepFloorProcessBean.CREATOR);
        regions = in.createTypedArrayList(StepFloorBean.CREATOR);
        fixNoAuditNum = in.readInt();
        dbFlag = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(taskId);
        dest.writeString(regionId);
        dest.writeString(regionName);
        dest.writeString(parentRegionName);
        dest.writeString(bh);
        dest.writeInt(levelNumber);
        dest.writeString(longitude);
        dest.writeString(latitude);
        dest.writeString(address);
        dest.writeString(processId);
        dest.writeString(processName);
        dest.writeDouble(processPercent);
        dest.writeTypedList(processes);
        dest.writeTypedList(regions);
        dest.writeInt(fixNoAuditNum);
        dest.writeInt(dbFlag);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<StepFloorBean> CREATOR = new Creator<StepFloorBean>() {
        @Override
        public StepFloorBean createFromParcel(Parcel in) {
            return new StepFloorBean(in);
        }

        @Override
        public StepFloorBean[] newArray(int size) {
            return new StepFloorBean[size];
        }
    };

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getParentRegionName() {
        return parentRegionName;
    }

    public void setParentRegionName(String parentRegionName) {
        this.parentRegionName = parentRegionName;
    }

    public int getDbFlag() {
        return dbFlag;
    }

    public void setDbFlag(int dbFlag) {
        this.dbFlag = dbFlag;
    }
}
